PATH  Mac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Icon Services and Utilities
>
Obtaining and Using Icons With Icon Services

   

Icon Alignment Constants

The IconAlignmentType enumeration defines constants that allow you to specify how to align an icon within its rectangle.

enum {
    kAlignNone= 0x00,
    kAlignVerticalCenter= 0x01,
    kAlignTop= 0x02,
    kAlignBottom= 0x03,
    kAlignHorizontalCenter= 0x04,
    kAlignAbsoluteCenter= kAlignVerticalCenter |
            kAlignHorizontalCenter,
    kAlignCenterTop= kAlignTop | kAlignHorizontalCenter,
    kAlignCenterBottom= kAlignBottom | kAlignHorizontalCenter,
    kAlignLeft= 0x08,
    kAlignCenterLeft= kAlignVerticalCenter | kAlignLeft,
    kAlignTopLeft= kAlignTop | kAlignLeft,
    kAlignBottomLeft= kAlignBottom | kAlignLeft,
    kAlignRight= 0x0C,
    kAlignCenterRight= kAlignVerticalCenter | kAlignRight,
    kAlignTopRight= kAlignTop | kAlignRight,
    kAlignBottomRight= kAlignBottom | kAlignRight
};


© 1999 Apple Computer, Inc. – (Last Updated 03 Dec 99)